package com.zzc.legou.service.item.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zzc.legou.core.service.ICrudService;
import com.zzc.legou.core.service.impl.CrudServiceImpl;

import com.zzc.legou.item.entity.Brand;
import com.zzc.legou.service.item.service.IBrandService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl extends CrudServiceImpl<Brand> implements IBrandService {
    @Override
    public List<Brand> selectBrandByIds(List<Long> ids) {
        LambdaQueryWrapper<Brand> queryWrapper = Wrappers.lambdaQuery(Brand.class).in(Brand::getId, ids);
        return this.baseMapper.selectList(queryWrapper);
    }
}
